//-  每个页面的布局

include headerAndFooter

//-  定义路径
- var res = '../public/'
- var css = '../public/css/'
- var images = '../public/images/'
- var js = '../public/js/'
- var bower = '../public/bower/'

doctype html
html
    head
        meta(charset='utf-8')
        meta(http-equiv='X-UA-Compatible', content='IE=edge')
        meta(name='viewport', content='width=device-width, initial-scale=1')
        meta(name="description", content="")
        // <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
        // 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！
        <!--[if lt IE 9]>
        script(src='#{bower}html5shiv/dist/html5shiv.min.js')
        <![endif]-->
        meta(name='apple-mobile-web-app-capable', content='yes')
        // 苹果允许全屏模式
        meta(name='apple-mobile-web-app-status-bar-style', content='black')
        // 苹果浏览器顶部状态栏颜色
        meta(name='format-detection', content='telephone=no')
        // 忽略数字为电话号码
        link(rel='apple-touch-icon-precomposed', href='#{res}favicon.ico')
        link(rel='shortcut icon', href='#{res}favicon.ico')
        link(rel='icon', type='image/x-icon', href='#{res}favicon.ico')
        script.
          if ( window.top != window.self ) {
            window.top.location = self.location.href
          }
          var ga = ga || function() {(ga.q = ga.q || []).push(arguments)};
        script(src='http://cdn.bootcss.com/jquery/1.11.0/jquery.min.js')
        script(src='http://cdn.staticfile.org/jquery-migrate/1.2.1/jquery-migrate.min.js?ver=1440706772')
        block title
            title 标题
        append style
            link(rel='stylesheet', href='#{css}common/main.css')
            link(rel='stylesheet', href='#{css}common/vendor.css')
            link(rel='stylesheet', href='#{css}index.css')
            link(rel='stylesheet', id='crp-style-rounded-thumbs-group-css', href='#{css}common/min.css', media='all')
    body
        // 头部
        block header
          +siteHeader()

        block body

        // 尾部
        +siteFooter()

        append script
            script(src='#{js}index.js')
            script(src='#{js}common/vendor/modernizr.js')
            script(src='#{js}common/vendor.js')
            script(src='#{js}common/plugins.js')
            script(src='#{js}common/pic_tab.js')
            script(src='#{js}common/main.js')
            script(src='http://www.voicer.me/wp-content/plugins/bwp-minify/min/?f=wp-content/plugins/adrotate/library/jquery.adrotate.clicktracker.js,wp-content/plugins/unveil-lazy-load/js/jquery.optimum-lazy-load.min.js,wp-content/themes/voicer3/js/navigation.js,wp-content/themes/voicer3/js/skip-link-focus-fix.js,wp-content/themes/voicer3/js/compressed.js,wp-content/themes/voicer3/js/main.js,wp-includes/js/wp-embed.min.js')
